export const mixins = {
  data() {
    return {};
  },
  computed: {
    getDeviceIcon(){
      return (name)=>{
        let url = '';
        try{
          if(name){
            url = require('@/assets/icons/device_icon/'+name+'.png')
          }
        }catch(err){

        }
        return url
      }
    },
    getSensorIcon(){
      return (name)=>{
        let url = '';
        try{
          if(name){
            url = require('@/assets/icons/sensor_icon/'+name+'.png')
          }
        }catch(err){

        }
        return url
      }
    },
  },
  created() {},
  mounted() {},
  methods: {},
};